#include <stdio.h>
#include <string.h>
#include <errno.h>
#include <time.h>


#include "lib.h"


static int debug_level = T_TRACE_DEBUG;
static int debug_facility = DEBUG_FACILITY_STDOUT;
static bool debug_enabled = true;
static unsigned int debug_mask = T_TRACE_ALL;



void logSetDebugLevel(int level) {
    debug_level = level;
}
void logSetFacility(int facility) {
    debug_facility = facility;
}
void logSetEnabled(bool enabled) {
    debug_enabled = enabled;
}
int logGetDebugLevel() {
    return debug_level;
}
int logGetFacility() {
    return debug_facility;
}
unsigned int logGetMask() {
    return debug_mask;
}
bool logIsEnabled() {
    return debug_enabled;
}
void logSetMask(unsigned int mask) {
    debug_mask = mask;
}


